package com;

import com.service.OrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Ch11Application implements CommandLineRunner {
    public static void main(String[] args) {
        SpringApplication.run(Ch11Application.class,args);
    }

@Autowired
private OrderServiceImpl service;

    @Override
    public void run(String... args) throws Exception {
          service.createOrder();
    }
}
